//电子邮件puhalskijsemen@gmail.com
//源码网站 开vpn全局模式打开 http://web3incubators.com/
//电报https://t.me/gamecode999
var o, e = require, t = module, n = exports, i = this && this.__extends || (o = function(t, e) {
    return (o = Object.setPrototypeOf || {
        __proto__: []
    } instanceof Array && function(t, e) {
        t.__proto__ = e;
    } || function(t, e) {
        for (var o in e) e.hasOwnProperty(o) && (t[o] = e[o]);
    })(t, e);
}, function(t, e) {
    function n() {
        this.constructor = t;
    }
    o(t, e), t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, 
    new n());
}), a = this && this.__decorate || function(t, e, o, n) {
    var r, a = arguments.length, i = a < 3 ? e : null === n ? n = Object.getOwnPropertyDescriptor(e, o) : n;
    if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) i = Reflect.decorate(t, e, o, n); else for (var c = t.length - 1; 0 <= c; c--) (r = t[c]) && (i = (a < 3 ? r(i) : 3 < a ? r(e, o, i) : r(e, o)) || i);
    return 3 < a && i && Object.defineProperty(e, o, i), i;
};

Object.defineProperty(n, "__esModule", {
    value: !0
}), n.ShopItemData = n.ShopItemType = void 0;

var r, s = e("MyScrollView"), c = e("PrefabView"), l = e("Global"), d = e("AudioManager"), u = e("GameConfig"), p = e("UIManager"), h = e("AdManager"), f = e("WebManager"), g = cc._decorator, m = g.ccclass, y = g.property;

!function(t) {
    t[t.ITEM = 0] = "ITEM", t[t.ARM = 1] = "ARM";
}(r = n.ShopItemType || (n.ShopItemType = {}));

var v = function() {};

n.ShopItemData = v;

var w = function(e) {
    function t() {
        var t = null !== e && e.apply(this, arguments) || this;
        return t.armView = null, t;
    }
    return i(t, e), t.prototype.onLoad = function() {
        u.GC.isVaild(this.text + "_inter") || h.default.getInstance().showInterstitialAd(this.text);
    }, t.prototype.onDestroy = function() {
        e.prototype.onDestroy.call(this), p.default.getInstance().showPnl("start");
    }, t.prototype.onClickBack = function() {
        d.default.getInstance().playAudio("按钮2"), f.default.getInstance().sentLog("点击商店界面返回按键"), 
        this.hidePnl();
    }, t.prototype.start = function() {
        this.armView.init(l.G.gunModelList.map(function(t) {
            var e = new v();
            return e.rank = t.id, e.type = r.ARM, e;
        }));
    }, a([ y(s.default) ], t.prototype, "armView", void 0), a([ m ], t);
}(c.default);

n.default = w;